<?php


    define("DBHOST",'localhost');
      define("DBUSER",'root');
        define("DBPASS",'root');
  define("DB",'manga24h');
require  "libraries/dbclass2.php";
if(isset($_GET['tb'])){
    $tb=$_GET['tb'];

    $db=new db;
    $db->connect();
    $db->query("select * from  ".$tb." order by id desc limit 0,1 ");
    echo "<textarea style='width:1000px;height:150px'>";
    $db->fields_name();
    echo "</textarea>"; 
   echo "<br/>";
       echo "<textarea style='width:1000px;height:150px'>";
    $db->fields_name();
    echo "</textarea>"; 
}
?>